#!/usr/local/bin/python
# -*- coding: utf8 -*-

import sys
import mmseg

from mmseg.search import seg_txt_search,seg_txt_2_dict

if __name__ == '__main__':
  print dir(mmseg)
  ##  print dir(mmseg.search)
  # print dir(mmseg.mmseg)
  text = '足足联系了40个人'
  text = 'C罗最近表现很好'
  text = '史玉柱：宁可错过，不要过错'
  for w in mmseg.seg_txt(text):
    print "-%s-" % w

  text = '招商银行是优秀的商业银行'
  for word, value in seg_txt_2_dict(text).iteritems():
    print word, value

  text = '招商银行是优秀的商业银行'
  text = '为什么最近无博可写，因为我在等7000点'
  for word in seg_txt_search(text):
    print word
